package com._520it.crm.service.impl;

import com._520it.crm.domain.SaleAccount;
import com._520it.crm.mapper.SaleAccountMapper;
import com._520it.crm.service.ISaleAcountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SaleAccountServiceImpl implements ISaleAcountService {
    @Autowired
    private SaleAccountMapper saleAccountMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return saleAccountMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(SaleAccount record) {
        return saleAccountMapper.insert(record);
    }

    @Override
    public SaleAccount selectByPrimaryKey(Integer id) {
        return saleAccountMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<SaleAccount> selectAll() {
        return saleAccountMapper.selectAll();
    }

    @Override
    public int updateByPrimaryKey(SaleAccount record) {
        return saleAccountMapper.updateByPrimaryKey(record);
    }
}
